home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Celestin Apprentice 7
/
Apprentice-Release7.iso
/
Demos
/
Tangent Systems
/
BuildSim 2.0b34.sit
/
BuildSim 2.0b34
/
BuildSim AutoCode Support
/
headers
/
BSMath.h
< prev
next >
Wrap
Text File
|
1997-08-07
|
2KB
|
73 lines
/*///////////////////////////////
//
// BSMath.h
//
// © 1994, 1995, 1996, 1997 Tangent Systems
//
// All rights reserved.
//
// This file contains confidential and proprietary information. No Portion
// of this file may be reproduced, by any means, without the written
// permission of Tangent Systems
//
// Tangent Systems makes no representation or warranties about the suitibility of the software,
// either express or implied, including but not limited to the implied warranties of merchantability,
// fitness for a particular purpose, or non-infringment.
//
// Tangent Systems shall not be liable for any damages suffered by licensee as a result of using,
// modifying or distributing this software or derivatives.
//
// Description:
//
//
//
// Author: John H. Shackelford, Tangent Systems
// email: jshack@tangentsys.com
//
// Date: 1997/06/20
// Version: A
//
// Revision History:
// 1997/06/20 Revision A - Initial Release
//
////////////////////////////////*/
#ifndef _BSMATH_H
#define _BSMATH_H
#include <math.h>
#define HUGE_VALUE HUGE_VAL
#define PI 3.14159265359
#define TWO_PI 6.28318530718
#define SQRT_PI 1.77245385091
#define PISQRD 9.86960440122
typedef double Real;
typedef struct
{
Real r;
Real i;
} Complex;
typedef Real* RealPtr;
typedef Real* RealVector;
typedef RealVector* RealMatrix;
typedef Complex* ComplexVector;
typedef ComplexVector* ComplexMatrix;
RealVector rvecAlloc(unsigned length);
RealMatrix rmatAlloc(unsigned rows, unsigned cols);
RealVector vmxMul(RealMatrix m, RealVector v, unsigned n1, unsigned n2);
void vecScale(RealVector m, unsigned n, Real scale);
void addVector(RealVector m, RealVector n, unsigned length);
void clearVector(RealVector m, unsigned length);
void disposeVector(RealVector m);
void vmxMul2(RealMatrix m, RealVector v, unsigned n1, unsigned n2, RealVector r);
Real acosh(Real x);
Real asinh(Real x);
Real atanh(Real x);
Real normalX(Real sigma, Real u);
#endif